[qemu] Fix shift key for non-graphical vnc displays (like the monitor).
authorChristian Limpach <Christian.Limpach@xensource.com>
Thu, 10 May 2007 13:44:45 +0000 (14:44 +0100)
committerChristian Limpach <Christian.Limpach@xensource.com>
Thu, 10 May 2007 13:44:45 +0000 (14:44 +0100)
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
tools/ioemu/vnc.c

index 1e515de7eb727e6edc31929913f3fcf017ce974d..ec435b91733b364bf6d7c38ecb89e5ec403c9168 100644 (file)
@@ -997,7 +997,7 @@ static void do_key_event(VncState *vs, int down, uint32_t sym)
 
 static void key_event(VncState *vs, int down, uint32_t sym)
 {
-    if (sym >= 'A' && sym <= 'Z')
+    if (sym >= 'A' && sym <= 'Z' && is_graphic_console())
        sym = sym - 'A' + 'a';
     do_key_event(vs, down, sym);
 }